package com.bt.lms.ui.action.teaching.arrange;

import com.bt.lms.ui.page.common.action.pageteaching.TeachingArrangeLabAction;
import com.bt.lms.ui.page.teaching.arrange.PageTeachingArrangeList;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.scene.control.Alert;
import javafx.scene.layout.Pane;

/**
 * 编辑教学安排界面保存并确认开课事件
 */
public class PageEditTeachingArrangeStartCourseBtnAction implements EventHandler {


    @Override
    public void handle(Event event) {

        PageTeachingArrangeList pageTeachingArrangeList = new PageTeachingArrangeList();
        Pane pane = TeachingArrangeLabAction.pageSkipInfo.getPane();
        Integer index = TeachingArrangeLabAction.pageSkipInfo.getIndex();
        pane.getChildren().set(index, pageTeachingArrangeList);
          //提示框
        Alert alert = new Alert(Alert.AlertType.CONFIRMATION);
        alert.setContentText("保存并确认开课吗");
        alert.show();

    }
}
